<script type="text/javascript">
	//页面加载时执行
	$(function() {
		$.get("applicationSingle/getCardInfo",function(data) {
			var contentb = "<option value='' selected>请选择</option>";
			var i;
			$(data).each(function(n, item) {
				for (i = 0; i < item.cdProDefinitions.length; i++) {
					contentb += "<option value="+item.cdProDefinitions[i].cardpCode+">"
					+ item.cdProDefinitions[i].cardpName+ "</option>"
					}
			$("#cardCodeByQueryMakeCard").html(contentb);
		});
}, "json");
		$.post("tellerManage/getpaperAndBranch",function(json){
			 var contentb="<option value='' >请选择</option>";
			 $(json).each(function(n,item){
				for(i=0;i<item.branchs.length;i++){
					contentb+="<option value="+item.branchs[i].orgName+">"
					+item.branchs[i].orgName+"</option>"
				};
				$("select[name='applyBranch']").html(contentb);
			 });
			
		 },"json")
		$.ajax({
			type : 'POST',
			url : "queryInfo/queryMakeCard",
			dataType : "json",
			cache : false,
			success : queryMakeCard,//回调函数
			error : DWZ.ajaxError
		});

	});
</script>
<div class="pageHeader ">
	<form id="pagerForm" method="post" action="queryInfo/queryMakeCard"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this,queryMakeCard);">
		<input type="hidden" name="pageNum" value="" /> <input type="hidden"
			name="numPerPage" value="" />
		<!-- <input type="hidden" name="pageCount" value="" /> -->
		<div class="searchBar">
			<!-- <table class="searchContent">
			<tr>
				<td style="text-align:left"><label>卡产品：</label></td>
				<td style="text-align:left"><select id="cardCodeByQueryMakeCard" name="cardPCode" >
			
				</select></td>
			
				<td><label>制卡任务编号：</label></td>
				<td><input  name="cardTaskNo" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td><label>任务导出时间(起)：</label></td>
				<td><input  name="dataSendDateStart" class="date" type="text" size="30"  /></td>
			
				<td><label>任务导出时间(止)：</label></td>
				<td><input  name="dataSendDateEnd" class="date" type="text" size="30" /></td>
			</tr>
			<tr>
				<td style="text-align:left"><label>任务状态：</label></td>
				<td style="text-align:left"><select  name="taskStatus" class=""  >
					<option value="" >请选择
					<option value="1">任务生成
					<option value="2">交付银行
					<option value="3">银行返回 
					<option value="4">制卡中
					<option value="5">已制卡
					<option value="6">部分制卡
					<option value="7">已导出制卡文件
				</select></td>
			
				<td style="text-align:left"><label>申领网点：</label></td>
				<td><input  name="applyDateCollBranch" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td><label>返回日期(起)：</label></td>
				<td><input  name="backRecDateStart" class="date" type="text" size="30"  /></td>
			
				<td><label>返回日期(止)：</label></td>
				<td><input  name="backRecDateEnd" class="date" type="text" size="30" /></td>
			</tr>
			</table> -->
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>卡产品：</label> <select id="cardCodeByQueryMakeCard"
							name="cardPCode"></select>
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>制卡任务编号：</label> <input name="cardTaskNo2" class="validTaskNo"
							type="text" size="30" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>申领网点：</label><!-- <input name="applyBranch" class=""
							type="text" size="30" /> -->
							<select name="applyBranch"></select>
					</p>
				</div>
			</div>
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>任务状态：</label> <select name="taskStatus" class="">
							<option value="">请选择
							<option value="1">任务生成
							<option value="2">交付银行
							<option value="3">银行返回
							<option value="4">制卡中
							<option value="5">已制卡
							<option value="6">部分制卡
							<option value="7">已导出制卡文件
						</select>

					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>任务导出日期(起)：</label><input name="dataSendDateStart"
							class="date validDateFrom" type="text" size="30" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>任务导出日期(止)：</label><input name="dataSendDateEnd"
							class="date validDateTo" type="text" size="30" />
					</p>
				</div>
			</div>
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>接收日期(起)：</label><input name="backRecDateStart" class="date validDateFrom"
							type="text" size="30" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>接收日期(止)：</label><input name="backRecDateEnd" class="date validDateTo"
							type="text" size="30" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12"></div>

			</div>

			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit" onclick="initCurrentPage()">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>

<form method="post" action="" class="pageForm required-validate"
	onsubmit="return validateCallback(this,refresh);">
	<div class="pageContent">
		<div id="ByMakeCardTask">
			<table class="table" width="1440" layoutH="218">
				<thead>
					<!-- 	制卡任务编号、任务名称、卡产品、任务状态、申请网点、申请单位、生成日期、生成柜员、合作商、
	制卡任务导出日期、返回日期、制作批次号、制卡厂商、配送柜员、配送日期、接收柜员、接收日期、单位领卡人、发卡日期 -->
					<tr align="center">
						<th width="12%">制卡任务编号</th>
						<th width="6%">任务名称</th>
						<th width="5%">卡产品</th>
						<th width="7%">任务状态</th>
						<th width="10%">申请网点</th>
						<th width="11%">申请单位</th>
						<th width="6%">任务生成日期</th>
						<th width="6%">任务生成柜员</th>
						<th width="6%">任务导出日期</th>
						<th width="6%">制作批次号</th>
						<th width="6%">制卡厂商</th>
						<th width="5%">接收日期</th>
						<th width="5%">接收柜员</th>
						<th width="4%">领卡人</th>
						<th width="5%">发卡日期</th>
					</tr>
				</thead>
				<tbody id="tbodyByQueryMakeCardTask">

				</tbody>
			</table>
		</div>
		<!-- <div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select id="numPerPageByQueryMakeCardTask" name="numPerPage" onchange="paging(this,$('#queryMakeCard'),queryMakeCard)">
				<option value="20">20</option>
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span id="totalCountByQueryMakeCardTask" ></span>
		</div>
			<div id="paginationByQueryMakeCardTask" class="pagination1"  ></div>
	</div> -->
		<div class="panelBar">
			<div class="pages">
				<span>显示</span> <select class="combox" name="numPerPage"
					onchange="navTabPageBreak({numPerPage:this.value},'tbodyByQueryMakeCardTask',queryMakeCard)">
					<option value="20">20</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="200">200</option>
				</select> <span id="totalCountByQueryMakeCardTask">条，共${totalCount}条</span>
			</div>

			<div callback='queryMakeCard' id="paginationByQueryMakeCardTask"
				rel="tbodyByQueryMakeCardTask" class="pagination"
				targetType="navTab" totalCount="200" numPerPage="5" pageNumShown="5"
				currentPage="1"></div>

		</div>
	</div>
</form>


